<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>新用户注册</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <div style="color:red">
   <%
   out.print(request.getClass().getName());
   out.print("<br/>");
   out.print(response.getClass().getName());
   String m=(String)request.getAttribute("msg");
   //request.removeAttribute("msg");
   
    %>
    <%=m==null?"":m%>
  </div>
    <form action="doReg.jsp" method="post">
    <p>
      <label>用户名</label>:<input type="text" name="uname"/>
    </p>
     <p>
      <label>密码</label>:<input type="password" name="upass"/>
    </p>
     <p>
      <label>确认密码</label>:<input type="password" name="repass"/>
    </p>
     <p>
      <label>电邮</label>:<input type="email" name="uemail"/>
    </p>
    <p>
    你的喜好有:
    <input type="checkbox" name="like" value="dancing"/>跳舞
    <input type="checkbox" name="like" value="sing"/>唱歌
    <input type="checkbox" name="like" value="game"/>游戏
    <input type="checkbox" name="like" value="Rap"/>Rap
    <input type="checkbox" name="like" value="basketball"/>篮球
    </p>
    <input type="submit"/>
    </form>
  </body>
</html>
